<template>
	<view class="Protocol">
	   <view class="margin bg-white padding radius flex justify-between align-center" v-for="(item,index) in value" :key="index" @click="navHtmlFn(item.link)"   >
		   <view style="flex: auto;" class="text-cut padding-right">{{item.title}}</view>
		   <view style="width: 60upx;min-width: 60upx;" class="text-right">
			    <text  class=" cuIcon-right"></text>
		   </view>
	   </view>
	</view>
</template>

<script>
	import * as api from '@/api/Protocol/index.js';
	export default {
		data(){
			return{
				value:[]
			}
		},
		onLoad() {
		  this.getRequestFn();	
		},
		methods:{
			navHtmlFn(url){
				uni.navigateTo({
					url:"/pages/Html/index?to="+url
				})
			},
			async getRequestFn(){
				let res=await api.agreementList();
				if(res.code===0){
					this.value=res.data;
				}
			}
		}
	}
</script>

<style>
</style>